home *** CD-ROM | disk | FTP | other *** search
- property pSpr
-
- on beginSprite me
- global gGameLevel, gFileSep
- case gGameLevel of
- 0, 1:
- newBG = "bg1"
- 2:
- newBG = "bg2"
- 3:
- newBG = "bg3"
- 4:
- newBG = "bg4"
- 5:
- newBG = "bg5"
- otherwise:
- newBG = randomFromList(["bg4", "bg5"])
- end case
- pSpr = sprite(me.spriteNum)
- pSpr.member.fileName = the pathName & "bg_picts" & gFileSep & newBG & ".jpg"
- end
-
- on mouseEnter me
- if not draggingAnything() then
- showDrinkContents(#thebar)
- refreshHelpWindow(#thebar)
- end if
- end
-
- on mouseLeave me
- if not draggingAnything() then
- hideToolTip()
- end if
- end
-
- on mouseDown
- replaceDraggingAnything()
- end
-